package com.fancon.android.gardenjokesx.dialog;
import android.app.Dialog;
import android.content.Context;
import android.view.View;
import android.view.Window;
import android.widget.Button;

import com.fancon.android.gardenjokesx.R;
import com.fancon.android.gardenjokesx.activity.ProfileSettingActivity;
import com.fancon.android.gardenjokesx.utils.Constant;

public class U08Dialog extends Dialog implements android.view.View.OnClickListener{
	
	private Button mBtnCancel;
	private Button mBtnYesSure;
	//private Context mContext;
	public U08Dialog(Context context) {
		super(context);
		//mContext = context;
		this.requestWindowFeature(Window.FEATURE_NO_TITLE);
		this.setContentView(R.layout.u08);
		this.setCancelable(true);
		mBtnCancel = (Button) findViewById(R.id.u08_btnCancel);
		mBtnCancel.setOnClickListener(this);
		mBtnYesSure = (Button) findViewById(R.id.u08_btnYesSure);
		mBtnYesSure.setOnClickListener(this);
	}

	@Override
	public void onClick(View v) {
		// TODO Auto-generated method stub
		if (v == mBtnCancel) {
			this.dismiss();
		} else if (v == mBtnYesSure) {
			// Register Privacy
			ProfileSettingActivity.OK = Constant.PUBLIC;
//			((U02Activity) mContext).registerPrivacy(Constant.PUBLIC);
			this.dismiss();
		}
	}
	

}
